package boogui.movie;

import java.awt.Color;
import java.awt.Component;

import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

public class CalTableCellRenderer extends DefaultTableCellRenderer {
	@Override
	public Component getTableCellRendererComponent(JTable table,
			Object value, boolean isSelected, boolean hasFocus, int row,
			int col) {
		Component cell = super.getTableCellRendererComponent(table, value,
				isSelected, hasFocus, row, col);
		
		//String d = ms.clickCal(m);

		if ("55".equals(table.getValueAt(row, col))) {
			cell.setBackground(Color.orange);
			System.out.println(row + "/ " + col);
		} else {
			cell.setBackground(Color.blue);
		}

		return cell;
	}
}
